-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Spanner: Range single keys index #4416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spanner: Range single keys index #4416
Conversation
a754bd7 to
317fbcc
Compare
spanner/tests/system/test_system.py
Outdated
| ) | ||
| selected = ([expected[keyrow]] + | ||
| expected[indices[index][0]:indices[index][1]]) | ||
| self.assertEqual(rows, selected) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
317fbcc to
d0078d1
Compare
|
@tseaver PTAL, thanks. |
spanner/tests/system/test_system.py
Outdated
| columns = self.COLUMNS[1], self.COLUMNS[2] | ||
| session, committed = self._set_up_table(row_count) | ||
| self.to_delete.append(session) | ||
| expected = [[row[1], row[2]] for row in self._row_data(row_count)] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
spanner/tests/system/test_system.py
Outdated
| expected = [[row[1], row[2]] for row in self._row_data(row_count)] | ||
| keyrow, start, end = 1, 3, 7 | ||
| start_index = [expected[start][0], expected[start][1]] | ||
| end_index = [expected[end][0], expected[end][1]] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
spanner/tests/system/test_system.py
Outdated
| keyset, | ||
| index='name') | ||
| ) | ||
| selected = ([expected[keyrow]] + expected[start : end+1]) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
7a38834 to
7c24064
Compare
spanner/tests/system/test_system.py
Outdated
| keyrow, start, end = 1, 3, 7 | ||
| closed_closed = KeyRange(start_closed=expected[start], | ||
| end_closed=expected[end]) | ||
| keys = [expected[keyrow],] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
1b17bce to
1eb298a
Compare
|
I added "and" in the title to separate from another set of tests. Merging on green. |
1eb298a to
ed567d8
Compare
I'm separating the tests into different PRs to minimize the damage. I plan to do the refactor once all the tests are all in and I'll do it separately so I don't change too much code at once.